package com.bootdo.shop.service.impl;

import com.bootdo.shop.dao.WxShopCatDao;
import com.bootdo.shop.domain.WxShopCatDO;
import com.bootdo.shop.service.WxShopCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class WxShopCatServiceImpl implements WxShopCatService {
	@Autowired
	private WxShopCatDao wxShopCatDao;
	
	@Override
	public WxShopCatDO get(String id){
		return wxShopCatDao.get(id);
	}
	
	@Override
	public List<WxShopCatDO> list(Map<String, Object> map){
		return wxShopCatDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return wxShopCatDao.count(map);
	}
	
	@Override
	public int save(WxShopCatDO wxShopCat){
		return wxShopCatDao.save(wxShopCat);
	}
	
	@Override
	public int update(WxShopCatDO wxShopCat){
		return wxShopCatDao.update(wxShopCat);
	}
	
	@Override
	public int remove(String id){
		return wxShopCatDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return wxShopCatDao.batchRemove(ids);
	}

    @Override
    public List<WxShopCatDO> likeList(Map<String, Object> map){
        return wxShopCatDao.likeList(map);
    }

    @Override
    public WxShopCatDO getByThirdCatId(String level3) {
		WxShopCatDO wxShopCatDO =wxShopCatDao.getByThirdCatId(level3);
		return wxShopCatDO;

    }

}
